package xddq

import (
	"fmt"
	"time"
	D "websocket_apn/define"
	"websocket_apn/log"
	"websocket_apn/proto"
)

// 解析幽冥战场礼物信息
func (xd *XdDriver) CheckParaWarSeasonGiftInfoData(allInfo []D.WarSeasonGiftInfo) {
	for _, info := range allInfo {
		log.Infof("幽冥战场-获取[%s]的礼物 %s", info.Name, info.ID)
		xd.Send(proto.Get_Cmd_Data(xd.userInfo.PlayerId, proto.S_WAR_SEASON_GET_GIFT, fmt.Sprintf("08 %s 10 %s", xd.UserData.WarSeasonID, info.ID)))
		time.Sleep(1 * time.Second)
	}
}
